import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'
import Product from '../views/Product.vue'
import Change from '../views/changeage.vue'
import msg from '../views/msg-center.vue'
import officialNotice from '../views/official-notice.vue'
import privateLetter from '../views/private-letter.vue'
import Aite from '../views/aite.vue'
import Like from '../views/like.vue'
import Attention from '../views/attention.vue'
import Setting from '../views/setting.vue'
import Zhaq from '../views/zhaq.vue';
import changePhone from '../views/changephone.vue';

Vue.use(VueRouter)

const routes = [
  {
    path:'/changephone',
    component:changePhone
  },

  {
    path:'/zhaq',
    component:Zhaq
  },
  {
    path:'/setting',
    component:Setting
  },
  {
    path: '/private-letter',
    component: privateLetter
  },
  {
    path: '/aite',
    component: Aite
  },
  {
    path: '/like',
    component: Like
  },
  {
    path: '/attention',
    component: Attention
  },
  {
    path: '/official-notice',
    component: officialNotice
  },
  {
    path: '/msg-center',
    component: msg
  },
  {
    path:'/product',
    component:Product
  },
  {
    path:'/change',
    component:Change
  },
  {
    path: '/',
    component: Index
  },
  {
    path: '/me',
    component: () => import(/* webpackChunkName: "me" */ '../views/Me.vue')
  },
  {
    path: '/swipe',
    component: () => import( /* webpackChunkName: "swipe" */ '../views/swipe.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
